
import request from '@/network/index'


// 获取列表
export function getPropsList(query) {
  return request({
    url: '/api/property/list',
    method: 'get',
    params: query
  })
}


// 获取项目信息
export function getPropertyInfo(id) {
  return request({
    url: '/api/property/getPropertyInfo/' + id,
    method: 'get'
  })
}

// 项目报名
export function signProperty(data) {
  return request({
    url: '/api/auctionEnroll/signProperty',
    method: 'post',
    data
  })
}

// 收藏添加和删除
export function propertyCollection(id) {
  return request({
    url: '/api/propertyCollection/add/' + id,
    method: 'post'
  })
}